package listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import util.DataExchangeUtil;

/**
 * 初始化零管和管控的油站代码(油站代码转换)
 * 
 * @author gj
 * 
 */
public class InitDataListener implements ServletContextListener {

	private static final Log log = LogFactory.getLog(InitDataListener.class);

	@Override
	public void contextDestroyed(ServletContextEvent servletcontextevent) {
		System.out.println("容器销毁.....");
	}

	@Override
	public void contextInitialized(ServletContextEvent servletcontextevent) {
		//DataExchangeUtil.selectStationCodeKeyValue();
		//log.info("零管和管控油站代码: " + DataExchangeUtil.appGkStationCodeKeyValue.size());
	}

}
